﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Index.aspx.cs" Inherits="BackgroundManage_Default" %>
<html>
	<head>
		<title></title>
		<style type="text/css">
.navpoint { cursor: pointer; display:inline; padding:5px; }
body {overflow-x: hidden; overflow: hidden; }
td { font-size:12px; }
a { color: #135294; text-decoration: none; }
a:hover { color: #ff6600; text-decoration: underline; }
<!--/* 文框录入框 */
.input_off { border:1px solid #9ea6ab;padding:0px;padding:1px;}
.input_on { border:1px solid #FFA200; background:#F3F6FA; padding:1px;}


/* 按钮 */
.button_off { border:1px solid #D5E366; background:#EEF4F7;height:20px;padding-bottom:1px;}
.button_on { border:1px solid #c3a336; background:#EEF4F7;height:20px;padding-bottom:1px;}-->

</style>
<script type="text/javascript" src="Scripts/jquery.min.js"></script>
<script type='text/javascript' src='scripts/common.js'></script>
 <script type="text/javascript">  
 function f()
 {
 document.open();
 document.close();
 } 
  
  </script>   

<script type="text/javascript" language="javascript">

var status = 1;
function switchSysBar()
{
     if (1 == window.status)
     {
		  window.status = 0;
          switchPoint.innerHTML = '<img src="images/left.gif" alt="" />';
          document.all("frmTitle").style.display="none"
     }
     else
     {
		  window.status = 1;
          switchPoint.innerHTML = '<img src="images/right.gif" alt="" />';
          document.all("frmTitle").style.display=""
     }
}

function EnterSubmit()
{
	if(event.keyCode == 13)
	{
		setvalue();
	}
}

function setvalue()
{
	var obj = document.getElementById('frmright').contentWindow.document.body;
	var keyword = document.getElementById('keyword');
	var link = '';
	var url = '';
	if(keyword.value=='')
	{
		link='请输入搜索条件!';
		obj.innerHTML=link;
		keyword.focus();
	}
	else
	{
		var ajax = new DvAjax();	
		ajax.Request('get', 'admin_function_search.aspx', 'action=search&keyword=' + escape(keyword.value), function (xmlHttp) {
			try
			{
				if ('0' === xmlHttp.responseText)
				{
					link='没有找到相关功能项！';							
				}
				else
				{
					link=xmlHttp.responseText;
				}
				if(link.indexOf('&')!=-1)
				{
					url=link.substring(link.indexOf('&')+1,link.length);
					document.getElementById('frmright').contentWindow.document.location=	url;	  
				}
				else
				{
					obj.innerHTML=link;
				}
			}
			catch(e)
			{ 
				alert(e.Message)
			}
			finally
			{
				xmlHttp.abort();
			}
		}, true);
	}
}
		</script>
</head>
		
		<body style="margin: 0px">
			<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" style="background:#C3DAF9;">
				<tbody>
					<tr>
						<td height="52" colspan="3" style="overflow:hidden;height:52px;">
							<iframe frameborder="0" id="frmTop" name="frmTop" scrolling="auto" src="top.aspx"
								style="height: 52px;; visibility:visible;width: 100%;overflow:hidden;" runat="server"></iframe>
						</td>
					</tr>
					<tr >
						<td colspan="3" height="24px">
							<table height="24px" width="100%" border="0" cellspacing="0" cellpadding="0">
								<tr height="24px">
								<td background="images/blue_bg_002.gif">
								<div onClick="switchSysBar()" style="height:24px;">
								<span class="navpoint" id="switchPoint" title="关闭/打开左栏">
									<img src="Images/right.gif" alt="" /></span>
							</div>
								</td>
									<td background="images/blue_bg_002.gif" width="28" 
									    style="padding-left:5px;"><img src="images/mail.gif" alt="进入您的收件箱." align="absmiddle" />
									 </td>
									<td background="images/blue_bg_002.gif" width="80%">
									<span style="float:left;">最新消息：</span>
									<span style="color:#c00; font-weight:bold;width:100%;vertical-align:middle" id="mail" >
									<marquee scrollamount="3" onmousemove="this.stop()" onmouseout="this.start()" scrolldelay="180" direction="left"></marquee>
									</span>
									</td>									
									<td background="images/blue_bg_002.gif" valign="middle" style="text-align:right; color: #135294;
									 padding-right:20px;">									    
										<script>
										//document.write(GetDateString());
										</script>
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td align="center" id="frmTitle" valign="top" style="background:#c9defa">
						
							<iframe scrolling="auto" frameborder="0" id="frmLeft" name="frmLeft" src="Left.aspx" style="height: 100%; overflow:hidden;
							visibility: visible;width: 185px;background:url(images/leftop.gif) no-repeat;"							
								allowtransparency="true"></iframe>
						<td style="width: 100%" valign="top">
							<iframe frameborder="0" id="frmright" name="frmright" scrolling="auto" src="CardList.aspx?mode=favorite" style="height: 100%;width:100%; z-index: 1"></iframe>
						</td>
					</tr>
					<tr>
						<td height="30" colspan="3">
							<table width="100%" border="0" cellspacing="0" cellpadding="0" style="background:url(images/blue_bg_003.gif)">
								<tr height="32">
									<td style="padding-left:30px; font-family:arial; font-size:10px;">系统推荐浏览器版本为谷歌浏览器，如果你的浏览器不符合要求，<a href="https://www.google.com/intl/zh-CN/chrome/browser/?hl=zh-CN&brand=CHMI" target="_blank">点此下载</a>。&nbsp;</td>
									<td style="text-align:right; color:#91B1C6;">
									<td style="text-align:right; color: #135294; padding-right:20px;">
									<%--<a href="../default.aspx" target="_blank">前台首页</a>
										|<a href="Main.aspx" target="frmright">管理首页</a>
										|<a href="help/HelpManage.aspx?mode=manage" target="frmright">帮助中心</a>
										|<a href="ClearCache.aspx" target="frmright">清理缓存</a>
										|--%><a href="Index.aspx?mode=logout">退出系统</a>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</tbody>
			</table>
		</body>
</html>